<template>
  <div class="checkBtn">
    <span class="iconfont iconcheck" v-if="isChecked"></span>
    <span class="notChecked" v-else></span>
  </div>
</template>

<script>
  export default {
    name: "CheckButton",
    props: {
      isChecked: {
        type: Boolean,
        default(){
          return false
        }
      }
    }
  }
</script>

<style scoped>
  .iconcheck{
    background-color: var(--color-tint);
    font-size: 20px;
    border-radius: 50%;
    color: #fff;
  }
  .notChecked{
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--color-text);
  }
</style>
